import asyncio, pyautogui, random

from core.base_actions import BaseActions
from core.utils import get_image_pos

class AutoSalvageCardActions(BaseActions):
  async def start_salvage(self):
    salvage_count = 1
    await self.log("开始拆分")
    while True and salvage_count < 7:
      pyautogui.press("f1")
      await self.log(f"拆分 {salvage_count} 次")
      salvage_count += 1
      await asyncio.sleep(random.randint(4, 5))